<?php @list($hours, $minutes, $seconds) = explode(':', $this->element->getValue()); ?>
<dt>
    <?= $this->formLabel($this->element->getName(), $this->element->getLabel()); ?>
</dt>
<dd>
    <select id="<?= $this->element->getName();?>" name="<?= $this->element->getName();?>">
    <?
        for( $h = 0; $h < 24; $h++ ):
            $selected = $h == $hours ? ' selected="selected"' : '';
            $paddedHours = sprintf( '%02d', $h );
    ?>
        <option value="<?= $paddedHours ?>"<?= $selected ?>><?= $paddedHours ?></option>
    <? endfor; ?>
    </select>
    <select id="<?= $this->element->getName();?>" name="<?= $this->element->getName();?>">
    <?
        for( $m = 0; $m < 60; $m += 15 ):
            $selected = $m == $minutes ? ' selected="selected"' : '';
            $paddedMinutes = sprintf( '%02d', $m );
    ?>
        <option value="<?= $paddedMinutes ?>"<?= $selected ?>><?= $paddedMinutes ?></option>
    <? endfor; ?>
    </select>

    <input id="<?= $this->element->getName(); ?>" 
           type="hidden"
           name="<?= $this->element->getName(); ?>[]" 
           value="00" />



    <?php if(count($this->element->getMessages()) > 0): ?>
        <?= $this->formErrors($this->element->getMessages()); ?>
    <?php endif; ?>
</dd>
